package com.zhucan.tenant.datasource.mybatis;

import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import org.apache.ibatis.executor.statement.StatementHandler;
import org.apache.ibatis.plugin.Intercepts;
import org.apache.ibatis.plugin.Signature;

import java.sql.Connection;

/**
 * @author zhuCan
 * @description
 * @since 2023/3/17 16:22
 */
@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class , Integer.class}) })
public class MybatisPlusTenantInterceptor extends MybatisPlusInterceptor {


  public MybatisPlusTenantInterceptor(DatasourceDynamicTableNameInnerInterceptor innerInterceptor){
    super.addInnerInterceptor(innerInterceptor);
  }


}
